<?php if (!defined('THINK_PATH')) exit();?><div id="adv_<?php echo ($pos["id"]); ?>" class="adv-wrap" style="padding: <?php echo ($pos["padding"]); ?>;margin:<?php echo ($pos["margin"]); ?>;">
    <div class="text-left " style="width:<?php echo ($pos["width"]); ?>;height:<?php echo ($pos["height"]); ?>;">

            <a target="<?php echo ($list["0"]["target"]); ?>" href="<?php echo ($list["0"]["url"]); ?>"><img style="width:<?php echo ($pos["width"]); ?>;height:<?php echo ($pos["height"]); ?>;" src="<?php echo (get_cover($list["0"]["pic"],'path')); ?>"></a>

    </div>
    <?php if(check_auth('Admin/Adv/adv') == 1): ?><div class="adv-tool">
            <a target="_blank" href="<?php echo U('Admin/Adv/editPos?id=' . $pos['id']);?>"><i title="设置广告位" class="icon-cog"></i> 设置 </a>
            <a target="_blank" href="<?php echo U('Admin/Adv/adv?pos_id=' . $pos['id']);?>"><i title="管理广告" class="icon-sitemap"></i> 广告 </a>
            <a target="_blank" href="<?php echo U('Admin/Adv/editAdv?pos_id=' . $pos['id']);?>"><i title="新增广告" class="icon-plus"></i> 添加 </a>
        </div>
        <div class="adv-size">
            <?php echo ($pos["title"]); ?>  【<?php echo ($pos["name"]); ?>】: <?php echo ($pos["width"]); ?> * <?php echo ($pos["height"]); ?>
        </div><?php endif; ?>

</div>